package com.getpebble.android.common.framework.util;

import android.content.Context;
import android.graphics.Point;
import android.view.Display;
import android.view.WindowManager;

public class UiUtil {
    public static int getScreenWidth(Context ctx) {
        Display display = ((WindowManager) ctx.getSystemService("window")).getDefaultDisplay();
        Point size = new Point();
        display.getSize(size);
        return size.x;
    }
}
